home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 42 lines | [TEXT/GEOL] |
- Item 7349467 16-Oct-90 05:38PDT
-
- From: POWERUP.ENG Power Up Software,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: RE>Error 815- Unsafe use
-
- Attn: MacApp.Tech$
- SentBy: MacApp . Tech
- Date 10/12/90
- Subject RE>Error 815- Unsafe use
- From MacApp . Tech
- To Transfinite Sys, D Eastlake,PR
- CC MacApp.Tech$
-
- Subject: RE>Error 815: Unsafe use
- Dear Representative of Transfinite Systems,
-
- This is one of the most common Object Pascal programming errors. I can't
- count the number of 815's I've gotten.
-
- If you look in the MPW Pascal manual, in the "Object-Oriented Programming"
- chapter, there's a section titled "Differences from Traditional Programming."
- It discusses, in a "Note", the actions which dereference an object reference.
- These actions can be converted to Rules for Avoiding Error 815:
- • DON'T pass an object's field as a VAR parameter
- • DON'T pass an object's field, larger than 4 bytes, as a parameter
- (whether VAR or
- not)
- • DON'T use a WITH statement for a field of an object that is itself a
- record (but not an
- object reference)
-
- Following these rules should keep you from seeing Error 815. Hoping that this
- helps, I am
-
- Yours,
-
- James Plamondon
-
-